package com.jqkb.service;

import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class NewMessageReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Log.i(NewMessageService.TAG, "开机启动->启动服务");
        //Application.onCreate() 中已经启动服务了
        Intent serviceIntent = new Intent(context, NewMessageReceiver.class);
        context.startService(serviceIntent);
    }
}
